# urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import UserAuthViewSet
from .views import (
    RequestPasswordResetView,
    ListResetRequestsView,
    ProcessResetRequestView
)
router = DefaultRouter()
router.register('auth', UserAuthViewSet, basename='auth')  # 注册ViewSet

urlpatterns = [
    path('', include(router.urls)),
    path('password-reset/', include([
        path('request/', RequestPasswordResetView.as_view(), name='request-reset'),
        path('requests/', ListResetRequestsView.as_view(), name='reset-requests'),
        path('requests/<int:request_id>/', ProcessResetRequestView.as_view(), name='process-reset'),
    ]))
]


